package com.dps.omc.shell;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by lip on 2016-07-13.
 */
public class OutputTasks {

    private static Map<String,ShellOutputTask> map = new HashMap<String, ShellOutputTask>();

    public static void putTask(String sessionId,ShellOutputTask task)
    {
        map.put(sessionId,task);
    }

    public static ShellOutputTask getTask(String sessionId)
    {
        return map.get(sessionId);
    }

    public static void  remove(String sessionId)
    {
        map.remove(sessionId);
    }
}
